package com.liujit.upms.domain.params;

import com.liujit.common.domain.params.BaseParams;
import com.liujit.validator.group.ModifyGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Description 系统机构请求参数
 * @Author liujun
 * @Date 2021-07-02 15:00:39
 */
@Data
@ApiModel(value = "SysOrgParams", description = "系统机构请求参数")
public class SysOrgParams extends BaseParams {

    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不能为空", groups = ModifyGroup.class)
    private Long id;

    @ApiModelProperty(value = "名称")
    @Length(max = 20, message = "名称最大长度20")
    private String name;

    @ApiModelProperty(value = "父id")
    private Long pid;

    @ApiModelProperty(value = "父code")
    private String pcode;

    @ApiModelProperty(value = "编号")
    @Length(max = 20, message = "编号最大长度20")
    private String code;

    @ApiModelProperty(value = "序号")
    private Integer seq;

    @ApiModelProperty(value = "启用：1、是。0、否。")
    private Short enabled;
}